# 4.1 列表
x=[0,1,2,3,4,5,6,7,8,9]
print(x[-5:])
x.append(666)
print(x)
del x[-1]
print(x)

# 4.2 元组
a = (0,1,2,3,4,5,6,7,8,9)
print(a[-5:])
# del a
print(a)

# 4.3 字典
d = {
        "小明":59,
        "张三":88, 
        "李四":99
}
print("访问字典内某个特定的值:", d["小明"])

d["超人"]=100

print(d)

del d["李四"]
print(d)


# 4.4 集合
j = {"12s", "234p", "杨青", 123, 100}
print(j)
j.add("我是添加的元素")
print(j)

j.remove("234k")
print(j)

j.pop()
print(j)

j.clear()
print(j)

# del j
# print(j)